//
//  SearchClassShowView.h
//  AmountBody
//
//  Created by smm on 2018/1/20.
//  Copyright © 2018年 RCMTM. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^BackButtonBlock)(void);
typedef void (^SearchButtonBlock)(NSString *searchStr, BOOL isReturn);
typedef void (^SearchClassBlock)(int index);
@interface SearchClassShowView : UIView<UITextFieldDelegate>
@property (strong, nonatomic) UIButton *backButton;
@property (strong, nonatomic) UIView *searchView;
@property (strong, nonatomic) UITextField *searchText;
@property (strong, nonatomic) UIImageView *searchImage;
@property (strong, nonatomic) UIView *classView;
@property (strong, nonatomic) UIImageView *classImage;
@property (strong, nonatomic) UIScrollView *classScroll;
@property (strong, nonatomic) NSArray * classArray;
@property (assign, nonatomic) int index;

-(void)loadSearchViewWithClassArray:(NSArray*)classArr andHasBack:(BOOL)hasBack andFirstChoose:(int)index;
+(void)blockForBackButton:(BackButtonBlock)backBlock;
+(void)blockForSearchButton:(SearchButtonBlock)searchBlock;
+(void)blockForSearchClass:(SearchClassBlock)classBlock;
@end
